<div class="MainDatesPic">
		<?php
		$a=$AnneeN-2011;
		$vi=0;
		 while($vi<=$a){ 
		$H=2011+$vi;
		 	if($Year==$H){
			$HoverPic="style='background-color:#74736E;'";
			}
			else{
			$HoverPic="";
			}
		 ?>
		<a href="index.php?page=Photos&Year=<?php echo 2011+$vi; ?>&lang=<?php echo $lang; ?>"> <div class='DatesPic' <?php echo $HoverPic; ?>>
		<?php echo 2011+$vi;  ?>
		 </div></a>
		 <?php $vi++;
		 }
		
		?>
	</div>
	<div class="clr"></div>
	<div class="ContenuCalendrier">
	<div id="gallery">
	<?php 
	$cpte=mysql_query("SELECT * FROM photosactu, actualites WHERE actualites.idActu = photosactu.idActu AND actualites.Annee='$Year' ORDER BY idPhotosActu LIMIT 30") or die(mysql_error());
	$nbPhotos=mysql_num_rows($cpte);
 	$Stop=floor($nbPhotos/4);
	$Stop=$Stop*4;

	$recupPhotos=mysql_query("SELECT * FROM photosactu, actualites WHERE actualites.idActu = photosactu.idActu AND actualites.Annee='$Year'  ORDER BY RAND() LIMIT $Stop ") or die (mysql_error());
 $pi=0;
 
 while($rowP=mysql_fetch_array($recupPhotos)){
 $NomImage=$rowP['NomImage'];
 $TitreImgFR=$rowP['TitreImgFR'];
 $pi++;
	 echo "<a href='../imagesActualites/Big/".$NomImage."' title='Concrete Paris. ' $('#gallery').lightBox();><div class='PhotosCache'><img src='../imagesActualites/".$NomImage."' width='100%'></div></a>";
	//echo' <a id="example1" href="./imagesActualites/Big/'.$NomImage.'"  rel="CONCRETE"><div class="PhotosImg2" style="background-image:url(./imagesActualites/'.$NomImage.'); "></div></a>';

}
 ?>
 </div>
 <br><br>
 </div>